package cn.kgc.Adjudicative.service.impl;

import cn.kgc.Adjudicative.entity.DRole;
import cn.kgc.Adjudicative.mapper.DRoleMapper;
import cn.kgc.Adjudicative.service.DRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sun
 * @since 2023-01-05
 */
@Service
public class DRoleServiceImpl extends ServiceImpl<DRoleMapper, DRole> implements DRoleService {

    @Autowired
    private DRoleMapper roleMapper;

    @Override
    public Set<String> getRoleByusername(String username) {
        return roleMapper.selectRolesByUsername(username);
    }
}
